<template>
  <HCaptcha
    sitekey="7b4e262e-28e2-4dc4-b0f0-54768708f3e0"
    @verify="onVerify"
    @expired="onExpire"
    />
    <!-- sitekey="10000000-ffff-ffff-ffff-000000000001" -->
</template>

<script setup>
import HCaptcha from '@hcaptcha/vue3-hcaptcha'; // ✅ 默认导入

const emit = defineEmits(['verified']);

function onVerify(token) {
  emit('verified', token);
}

function onExpire() {
  emit('verified', null);
}
</script>
